<template>
	<div>
		<el-card class="box-card" style="margin-top:15px">
			<div slot="header" class="clearfix">
				<span style="font-weight: bold">设置</span>
			</div>
			<el-row :gutter="15">
				<el-form label-width="80px">
					<el-col :span="12">
						<el-form-item label="年龄低值">
							<div class="dialogFirstRow">
								<el-select v-model="submit.unequalLow" size="mini">
									<el-option label=">=" value="0"></el-option>
									<el-option label=">" value="1"></el-option>
								</el-select>
								<el-input v-model="submit.age_low" v-only-number="{max:10000000000,min:0,precision:0}" size="mini" ></el-input>
								<el-select v-model="submit.age_low_unit" size="mini">
									<el-option v-for="item in ageOptions" :key="item.value" :label="item.label" :value="item.value">
									</el-option>
								</el-select>
							</div>
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="年龄高值">
							<div class="dialogFirstRow">
								<el-select v-model="submit.unequalHigh" size="mini">
									<el-option label="<=" value="0"></el-option>
									<el-option label="<" value="1"></el-option>
								</el-select>
								<el-input v-model="submit.age_high" v-only-number="{max:10000000000,min:0,precision:0}" size="mini"></el-input>
								<el-select v-model="submit.age_high_unit" size="mini">
									<el-option v-for="item in ageOptions" :key="item.value" :label="item.label" :value="item.value">
									</el-option>
								</el-select>
							</div>
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="警示级别">
							<el-select v-model="submit.slCode" placeholder="请选择警示级别">
								<el-option
								  v-for="item in jsjbOptions"
								  :key="item.value"
								  :label="item.label"
								  :value="item.value">
								</el-option>
							</el-select>
						</el-form-item>	
					</el-col>
					<el-col :span="24">
						<el-form-item label="警示信息">
							<el-input type="textarea" v-model="submit.remark"></el-input>
						</el-form-item>
					</el-col>
				</el-form>
			</el-row>
		</el-card>
	</div>
</template>

<script>
	export default {
		name:"crSetCard",
		data () {
			return {
				ageOptions:[
					{
					  value: '岁',
					  label: '岁'
					},
					{
					  value: '月',
					  label: '月'
					},
					{
					  value: '天',
					  label: '天'
					},
				],
				jsjbOptions:[
					{
					  value: '0',
					  label: '拦截'
					},
					{
					  value: '1',
					  label: '禁忌'
					},
					{
					  value: '2',
					  label: '不推荐'
					},
					{
					  value: '3',
					  label: '轻微'
					},
				],
				submit:{
					slCode:"0",
					drug_mc:"",
					unequalLow:"0",
					age_low:"",
					age_low_unit:"岁",
					unequalHigh:"0",
					age_high:"",
					age_high_unit:"岁",
					remark:""
				}
			}
		},
		methods:{
			resetFun(){
				this.submit={
					slCode:"0",
					drug_mc:"",
					unequalLow:"0",
					age_low:"",
					age_low_unit:"岁",
					unequalHigh:"0",
					age_high:"",
					age_high_unit:"岁",
					remark:""
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.el-card {
		margin-left: 3px;
	}
	.dialogFirstRow>>>.el-input {
		width: 70px;
		margin-right: 10px;
	}
	
	.el-form-item.s_selectbox>>>.el-form-item__content {
		width: 80%;
	}
	
	
	.demo-form-inline>>>.el-form-item {
		margin-bottom: 0px;
	}
	
	.dialogFirstRow>>>label {
		height:41px;
		display:inline-block;
	}
</style>